package com.itheima.service.impl;

import com.alibaba.dubbo.config.annotation.Service;
import com.itheima.dao.HealthQuestionDao;
import com.itheima.entity.Result;
import com.itheima.pojo.Question;
import com.itheima.service.HealthQuestionService;
import org.springframework.beans.factory.annotation.Autowired;
@Service(version = "1.0.0",interfaceClass = HealthQuestionService.class)
public class HealthQuestionServiceImpl implements HealthQuestionService {
    @Autowired
    private HealthQuestionDao healthQuestionDao;
    @Override
    public Result find(Integer id) {
        Question question=healthQuestionDao.find(id);
        return Result.success(question);
    }
}
